<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include :: header"></head>
<body>
<div style="padding: 15px">
    <form class="layui-form" action="" th:object="${epointproject}">
        <input name="projectId" type="hidden" th:field="*{projectId}"/>
        <div class="layui-form-item">
            <label class="layui-form-label">项目名称</label>
            <div class="layui-input-block">
                <input type="text" name="projectName" th:field="*{projectName}" lay-verify="required"
                       autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">项目等级</label>
                <div class="layui-input-inline">
                    <select name="projectLevel" id="projectLevel" lay-verify="required" lay-search="">
                        <option value="T" th:field="*{projectLevel}">T级</option>
                        <option value="A" th:field="*{projectLevel}">A级</option>
                        <option value="B" th:field="*{projectLevel}">B级</option>
                        <option value="C" th:field="*{projectLevel}">C级</option>
                        <option value="D" th:field="*{projectLevel}">D级</option>
                        <option value="W" th:field="*{projectLevel}">W级</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">开发联系人</label>
                <div class="layui-input-inline">
                    <input type="text" name="devContact" th:field="*{devContact}" lay-verify="required"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">实施联系人</label>
                <div class="layui-input-inline">
                    <input type="text" name="proContact" th:field="*{proContact}" lay-verify="required"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">所在省份</label>
                <div class="layui-input-inline">
                    <input type="text" name="province" th:field="*{province}" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">所在县区</label>
                <div class="layui-input-inline">
                    <input type="text" name="city" th:field="*{city}" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                    <textarea type="text" name="remark" th:field="*{remark}" autocomplete="off"
                              class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="epointproject">修改保存</button>
            </div>
        </div>
    </form>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    /*<![CDATA[*/
    var sysUrl = '/venus/project/epointproject';
    layui.use('form', function () {
        var form = layui.form;
        form.on('submit(epointproject)', function (data) {
            save(sysUrl, 'edit', data.field);
            return false;
        });
    });
    /*]]>*/
</script>
</body>
</html>